home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / appsrcs.zip / APPFINDR.ZIP / TOOLS.C < prev    next >
C/C++ Source or Header  |  1993-03-26  |  780b  |  23 lines

  1. #define STRICT
  2. #include <windows.h>
  3. #include <windowsx.h>
  4. #include <stdio.h>
  5. #include <stdarg.h>
  6. #include "AppFindr.h"
  7.  
  8. char szBuffer[256];
  9.  
  10. /*----------------------------------------------------------------------------*/
  11. /* FUNCTION: OkMsgBox(char *szCaption, char *szFormat, ...)             */
  12. /*                                                                            */
  13. /* PURPOSE:  Display in an OKmessageBox a given text                       */
  14. /*----------------------------------------------------------------------------*/
  15. VOID OkMsgBox(char *szCaption, char *szFormat, ...)
  16.     {
  17.     char *pArguments;
  18.  
  19.     pArguments = (char *) &szFormat + sizeof(szFormat);
  20.     vsprintf(szBuffer, szFormat, pArguments);
  21.     MessageBox(NULL, szBuffer, szCaption, MB_OK);
  22.     }
  23.